Clean up type warnings.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 14 Sep 2002 15:28:39 +0000 (15:28 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 14 Sep 2002 15:28:39 +0000 (15:28 +0000)
gpsbabel/gpspilot.c
gpsbabel/magnav.c

index 3278ad6bdc5cfd3f7559aa7d43f9dad75d8f2c8a..ed124d6f86c60fe75db89930c2587eb74730a1c7 100644 (file)
@@ -100,7 +100,7 @@ data_read(void)
                wpt_tmp->position.latitude.degrees = pdb_read4(&rec->latitude) / 3.6e6; 
                wpt_tmp->position.altitude.altitude_meters = pdb_read2(&rec->elevation) / 100.0;
        
-               vdata = pdb_rec->data + sizeof(*rec);
+               vdata = (char *) pdb_rec->data + sizeof(*rec);
 
                /*
                 * This maping is a bit contrived.   
index fc52e436b2dd1f8bea5a220e0fc177ce1cc95018..dec7a1fcf0b5f9cd051f67ecfd77194c32f274c1 100644 (file)
@@ -116,7 +116,7 @@ data_read(void)
                wpt_tmp->position.longitude.degrees = pdb_read4(&rec->longitude) / 1e5; 
                wpt_tmp->position.latitude.degrees = pdb_read4(&rec->latitude) / 1e5; 
 
-               vdata = pdb_rec->data + sizeof(*rec);
+               vdata = (char *) pdb_rec->data + sizeof(*rec);
 
                 wpt_tmp->shortname = strdup(vdata);
                vdata += strlen (vdata) + 1;